<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
</head>
<body>
<?php
$name = 'yangjh';
// echo $name . "\t";
// var_dump($name);
$list = array('name' =>'yangjh' ,'id'=> 1414140012, 'age' => 20);
// var_dump($list);
var_dump($list['name']);
$array = [
"foo" => "bar",
"bar" => "foo",
];
var_dump($array);
// 表达式练习
$a = 10;
$b = 2;
$c = $a + $b;
echo $c;
$a = '';
$b = 0;
echo ($a == $b);
var_dump($a === $b);
function p($str='')
{
    echo "<pre>" . $str . "</pre>";
}
p($c);
p($name);
// 流程控制
$a =3;
if($a>4) {
    p('比4大');
} else {
    p('不比4大');
}
// for循环
for ($i=0; $i <10 ; $i++) { 
    p($i);
}
?>
</body>
</html>